<template>
  <div>
     <nav-bar>
       <div class="icon" slot="left" @click="back">
         <img src="~assets/img/common/back.svg"/>
       </div>
       <div class="title" slot="center"><slot name="title"></slot></div>
     </nav-bar>
  </div>
</template>

<script>
  import navBar from 'components/common/navBar/navBar.vue'
  export default{
    name:'',
    data(){
      return {

       }
    },
    methods:{
      back(){
        this.$router.back()
      }
    },
    components:{
       navBar
    }
  }
</script>

<style scoped>
  .title{
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
  }
  .icon{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
</style>
